package com.leesche.zcsp.node.web.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.leesche.zcsp.node.web.dao.ServOrderDao;
import com.leesche.zcsp.node.web.model.ServOrder;
import com.leesche.zcsp.node.web.model.ServOrderCriteria;
import com.leesche.zcsp.node.web.service.ServOrderService;
import com.leesche.zcsp.node.web.service.impl.data.read.QueryServOrderCondition;
import com.leesche.zcsp.node.web.service.impl.data.read.ServOrderDto;
import com.leesche.zcsp.node.web.service.impl.data.writ.UpdateServOrderCommad;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Title: ServOrderServiceImpl.java
 * @Package com.leesche.zcsp.node.service.impl
 * @Description:()
 * @author dennies yang
 * @date 2016年9月22日 下午4:25:12
 * @version V1.0
 */
@Service
@Transactional
public class ServOrderServiceImpl
		extends
		BaseServiceImpl<ServOrder, ServOrderCriteria, ServOrderDto, QueryServOrderCondition, Long>
		implements ServOrderService {
	@Autowired
	private ServOrderDao servOrderDao;

	@Autowired
	public void setBaseDao(ServOrderDao servOrderDao) {
		super.setBaseDao(servOrderDao);
	}


	@Override
	public ServOrder findServOrderByOrderNo(String orderno) {
		return servOrderDao.selectServOrderByOrderNo(orderno);
	}
	@Override
	public int updateServOrderByOrderNo(UpdateServOrderCommad updateServOrderCommad) {
		return servOrderDao.updateServOrderByOrderNo(updateServOrderCommad);
	}
}
